{% extends "admin/adminbase.html" %}
{% block holder %}

    <div class="box">
				<div class="title">
					<h2>产品列表</h2>
					<img src="{{ STATIC_URL }}admin/gfx/title-hide.gif" class="toggle" alt="" />
				</div>
				<div class="content pages">

					<table>
						<thead>
							<tr>
								<td><input type="checkbox" class="checkall" /></td>
								<td>标题</td>
								<td>状态</td>
								<td>最近修改日期</td>
								<td>作者</td>
								<td>操作</td>
							</tr>
						</thead>
						<tbody>
                        {% for  c in centent %}
                            <tr class="grey">
								<td><input type="checkbox" /></td>
								<td><a href="#">{{ c.title }}</a></td>
								<td>{% if c.zhuangtai %}启用{% else %} 停用{% endif %}</td>
								<td>{{ c.riqi|date:"Y-m-d H:i:s" }}</td>
								<td>{{c.id }}</td>
								<td>
									<a href="edit?id={{c.id }}"><img src="{{ STATIC_URL }}admin/gfx/icon-edit.png" alt="Edit this item" /></a>
									<a href="#"><img src="{{ STATIC_URL }}admin/gfx/icon-delete.png" alt="Delete this item" /></a>
								</td>
							</tr>
                        {% endfor %}


						</tbody>
					</table>

					<div class="pages-bottom">
						<div class="actionbox">
							<form action="" method="post">
								<select class="action">
									<option>操作</option>
									<option>删除</option>
									<option>编辑</option>
								</select>
								<button type="submit"><span>确定</span></button>
							</form>
						</div>
					</div>

				</div>
			</div>


{% endblock %}